package com.xl6667.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 文章标签关联表
 * @TableName sg_article_tag
 */
@TableName(value ="sg_article_tag")
@Data
@ApiModel(value="文章标签关联表")
public class ArticleTag implements Serializable {
    /**
     * 文章id
     */
    @ApiModelProperty("文章id")
    private Long articleId;

    /**
     * 标签id
     */
    @ApiModelProperty("标签id")
    private Long tagId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public ArticleTag(Long id, Long tag) {
        this.articleId  = id;
        this.tagId = tag;
    }
}